<!DOCTYPE html>
<!-- saved from url=(0030)./agentMember -->
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
</head>
<body style="font-size: 21.7589px;">
<body style="font-size: 27.3485px;">
<div id="app">
    <div id="shadow" style="display: none;"></div>
    <header class="top">
        <span>会员管理</span> <!---->
        <div class="iconfont back" style="display: none;"></div>
        <a href="{:U('Users/agentCenter')}" class="iconfont back" style=""></a></header>

    <div data-v-473a97a8="" class="main" s="[object Object]">
        <table data-v-473a97a8="" class="col3Table col3TableTitle">
            <tbody data-v-473a97a8="">
            <tr data-v-473a97a8="">
                <th data-v-473a97a8="">账号</th>
                <th data-v-473a97a8="">类型</th>
                <th data-v-473a97a8="">登录时间</th>
                <th data-v-473a97a8="">下级人数</th>
            </tr>
            </tbody>
        </table>
        <table data-v-473a97a8="" class="ajaxContent col3Table col3TableCon">
            <foreach name="arr" item="v">
                    <tr data-v-473a97a8="" data-id="577940" class="active" id="uid" data-uid="{$v.userid}" data-num="{$v.num}">
                        <td data-v-473a97a8="">
                            <ins data-v-473a97a8="" style="color:#38f">{$v.accounts}</ins>
                        </td>
                        <td data-v-473a97a8="">
                            <?php echo count($sh)+1;?>级
                            <if condition="$v.utype eq 1 ">代理
                                <else /> 玩家
                            </if>
                        </td>
                        <td data-v-473a97a8="">{$v.lasttime}</td>
                        <td data-v-473a97a8="" style="color:red"><a style="cursor: pointer;">{$v.num}</a></td>
                    </tr>
            </foreach>
            <tr data-v-473a97a8="">
                <td data-v-473a97a8="" colspan="4" class="msg loadingMsg">已显示全部数据</td>
            </tr>
        </table>
        <div class="_problemBox" data-v-473a97a8="" style="display: none">
            <div class="blackBg"></div>
                <div class="moreLayer">
                    <ul>
                        <li>
                            <a class="noActive currentUser">
                                <i class="iconfont"></i>
                                <ins>
                                    <span class="acc"></span>
                                </ins>
                            </a>
                        </li>
                        <input type="hidden" id="kan">
                        <input type="hidden" id="uuid">
                        <li class="zxc"><a class="chakan">查看返点</a></li>
                        <li class='chakan1' style="display: none;"><a onclick="showx()">查看下级</a></li>
                        <?php if(empty($sh)){?>
                        <li class='chakan2' style="display: none;"><a onclick="fhsj()">返回上级</a></li>
                        <?php }else{?>
                        <li class='chakan2'><a onclick="fhsj()">返回上级</a></li>
                        <?php }?>
                    </ul>
                    <ul>
                        <li><a class="quxiao">取消</a></li>
                    </ul>
                </div>

        </div> <!----></div>
    <div data-v-473a97a8="" class="showCodeDetail" style="display: none">
        <div data-v-473a97a8="" class="blackBg"></div>
        <div data-v-473a97a8="" class="creatAccountDetail">
            <h3 data-v-473a97a8="" class="line" style="height: 80px;margin-top: 40px">
                <em data-v-473a97a8="" style="font-size: 22px;font-weight: 100">返点详情</em>
                <a data-v-473a97a8="" class="quxiao2">
                    <i data-v-473a97a8="" class="iconfont"></i>
                </a>
            </h3>

            <ul data-v-473a97a8="" class="infoshow">
                <li data-v-473a97a8="" style="">
                    <span data-v-473a97a8="" style="margin-left: 8px;text-align: center">彩种</span>
                    <span data-v-473a97a8="" style="margin-left: 45px;text-align: center">返点</span>
                    <span data-v-473a97a8="" style="margin-left: 35px;text-align: center">自身返点</span>
                </li>

                    <li data-v-473a97a8="">
                        <span data-v-473a97a8="" style="margin-left: 10px">北京PK10</span>
                        <span class="pk10" style="margin-left: 70px"></span>
                        <span style="margin-left: 50px">(自身返点：<?php echo sprintf('%.1f',$arr1['pk10']);?>)</span>
                    </li>
                    <li data-v-473a97a8="">
                        <span data-v-473a97a8=""  style="margin-left: 10px">北京快乐8</span>
                        <span class="kl8" style="margin-left: 70px"></span>
                        <span style="margin-left: 50px">(自身返点：<?php echo sprintf('%.1f',$arr1['kl8']);?>)</span>
                    </li>
                    <li data-v-473a97a8="">
                        <span data-v-473a97a8=""  style="margin-left: 10px">排列3/5</span>
                        <span class="pl3_5" style="margin-left: 70px"></span>
                        <span style="margin-left: 50px">(自身返点：<?php echo sprintf('%.1f',$arr1['pl3_5']);?>)</span>
                    </li>
                    <li data-v-473a97a8="">
                        <span data-v-473a97a8=""  style="margin-left: 10px">福彩3D</span>
                        <span class="fc3d" style="margin-left: 70px"></span>
                        <span style="margin-left: 50px">(自身返点：<?php echo sprintf('%.1f',$arr1['fc3d']);?>)</span>
                    </li>
                    <li data-v-473a97a8="">
                        <span data-v-473a97a8=""  style="margin-left: 10px">11选5</span>
                        <span class="x11_5" style="margin-left: 70px"></span>
                        <span style="margin-left: 50px">(自身返点：<?php echo sprintf('%.1f',$arr1['x11_5']);?>)</span>
                    </li>
                    <li data-v-473a97a8="">
                        <span data-v-473a97a8=""  style="margin-left: 10px">快3</span>
                        <span class="k3" style="margin-left: 70px"></span>
                        <span style="margin-left: 50px">(自身返点：<?php echo sprintf('%.1f',$arr1['k3']);?>)</span>
                    </li>
                    <li data-v-473a97a8="">
                        <span data-v-473a97a8=""  style="margin-left: 10px">时时彩:</span>
                        <span class="ssc" style="margin-left: 70px"></span>
                        <span style="margin-left: 50px">(自身返点：<?php echo sprintf('%.1f',$arr1['ssc']);?>)</span>
                    </li>

            </ul>
        </div>
    </div>
</div>
</div>

<script type="text/javascript">if (document.getElementById('load') && confirm('文件加载失败，是否刷新')) {
    location.reload()
}</script>
</body>

</body>
</html>

<script>

    $(".active").click(function(){
        var uid = $(this).data("uid");
        var num = $(this).data("num");
        $.ajax({
            type: "POST",
            url: "{:U('Users/agentMember2')}",
            data: { 'uid': uid },
            success: function (dat) {
                var dd = dat.substr(0,dat.length-8);
                var ss = dat.substr(dat.length-8);
                   $(".acc").html(dd);
                   $("#kan").val(ss);
                $("#uuid").val(uid);
                if(num>0){
                    $(".chakan1").show();
                }
                $("._problemBox").show();
            }
        });
    });
    $(".quxiao").click(function(){
        $("._problemBox").hide();
    });
    $(".chakan").click(function(){
        var code =  $("#kan").val();
        $.ajax({
            type: "POST",
            url: "{:U('Users/agentMember3')}",
            data: { 'code': code },
            success: function (dat) {
                var result=dat.split(",");
                for(var i=0;i<result.length;i++){
                     result[i];
                }

                var ssc = result[0];
                var k3 = result[1];
                var x11_5 = result[2];
                var fc3d = result[3];
                var kl8 = result[4];
                var pk10 = result[5];
                var pl3_5 = result[6];
                $(".ssc").html(ssc);
                $(".k3").html(k3);
                $(".x11_5").html(x11_5);
                $(".fc3d").html(fc3d);
                $(".kl8").html(kl8);
                $(".pk10").html(pk10);
                $(".pl3_5").html(pl3_5);
                $(".showCodeDetail").show();
            }
        });
    });

    function fhsj(){
        var uid = $("#uuid").val();
        window.location.href="/Users/agentMember/uid/"+uid+"/typ/"+2;
    }
/*
    $("body").on("click",".chakan1",function(){
        var uuid =  $("#uuid").val();
        window.location.href = "/Users/agentMember/uid/" + uuid+"/typ/"+2;
    });
*/
   function showx(){
        var uid = $("#uuid").val();
        window.location.href="/Users/agentMember/uid/"+uid+"/typ/"+1;
    }
    $(".quxiao2").click(function(){
        $(".showCodeDetail").hide();
    });
</script>